import { createRouter, createWebHistory } from 'vue-router'

// 首页组件
import HomeView from '../components/home/home.vue'
import LoginView from '../views/login/login.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/login',
      name: 'login',
      component: LoginView
    }


  ]
})

export default router
